<img
  class="ad-confirm-icon"
  [src]="'/assets/monk-design/confirm/' + data.type + '.png' | resource"
  imgError
  alt=""
/>

<div class="ad-confirm-content">
  <ng-container *ngIf="!portal">
    {{ data.content }}
  </ng-container>
  <ng-container *ngIf="portal">
    <ng-template [cdkPortalOutlet]="portal"></ng-template>
  </ng-container>
</div>

<div class="ad-confirm-action">
  <button mat-stroked-button mat-dialog-close *ngIf="data.isShowCancel">
    {{ data.cancelText }}
  </button>
  <button mat-flat-button (click)="dialogRef.close(true)" *ngIf="data.isShowConfirm">
    {{ data.confirmText }}
  </button>
</div>
